package com.example.queryexpressdelivery_01.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class TrackingResponse {
    @SerializedName("status")
    private String status;
    @SerializedName("msg")
    private String msg;
    @SerializedName("result")
    private Result result;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public static class Result {
        @SerializedName("number")
        private String number;
        @SerializedName("type")
        private String type;

        public List<TrackingEvent> getList() {
            return list;
        }

        public void setList(List<TrackingEvent> list) {
            this.list = list;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        @SerializedName("list")
        private List<TrackingEvent> list;
        // 其他字段和getter/setter方法...

        // 内部类TrackingEvent，用于表示"list"中的每个事件
        public static class TrackingEvent {
            @SerializedName("time")
            private String time;

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            @SerializedName("status")
            private String status;
            // 其他字段和getter/setter方法...
        }
    }

    // 为了简洁，省略了getter和setter方法...
    // 在实际代码中，你应该为所有字段提供getter和setter方法。
}
